package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/1/16 10:55 AM
 * @Version: 1.0
 **/
@Data
@TableName("pf_performance_score_method")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PerformanceScoreMethod 对象", description = "履职成效考核评分办法")
public class PerformanceScoreMethod extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long basePerformanceId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "基础表Id")
    private Long baseBusinessIndicatorsId;

    @ApiModelProperty(value = "序号")
    private Integer indexNum;

    @ApiModelProperty(value = "评价内容")
    private String checkItem;

    @ApiModelProperty(value = "权重")
    private BigDecimal weight;

    @ApiModelProperty(value = "计分办法")
    private String scoreMethod;

    @ApiModelProperty(value = "责任处室Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long reportOffice;

    @ApiModelProperty(value = "责任处室名称")
    @TableField(exist = false)
    private String reportOfficeName;

    @ApiModelProperty(value = "0-否，1-是")
    private Integer isLast;
}
